package com.xdf.whiteaccount.entity;
import java.io.Serializable;
/**
 * 由 chanchaw 创建于 2025-9-16 10:11:07，实现功能如下：
 * 1. 实现接口 Serializable
 * 2. 无参构造函数
 * 3. 建造者模式
 * 4. getter,setter,toString()
 * 草稿表主键错乱，修复后把前后id关联起来，做一个中间表
 */
public class JrkbilldraftCpIdTransfer implements Serializable {
    public JrkbilldraftCpIdTransfer() {}
    private static final long serialVersionUID = 1L;

    private Long id;//主键ID
    private Integer jrkbillCpId;//当前正式表对应的主键
    private Integer jrkbilldraftCpIdOld;//原cp_id
    private Integer jrkbilldraftCpIdNew;//新cp_id

    public Long getId(){return this.id;}
    public void setId(Long id){this.id = id;}
    public Integer getJrkbillCpId(){return this.jrkbillCpId;}
    public void setJrkbillCpId(Integer jrkbillCpId){this.jrkbillCpId = jrkbillCpId;}
    public Integer getJrkbilldraftCpIdOld(){return this.jrkbilldraftCpIdOld;}
    public void setJrkbilldraftCpIdOld(Integer jrkbilldraftCpIdOld){this.jrkbilldraftCpIdOld = jrkbilldraftCpIdOld;}
    public Integer getJrkbilldraftCpIdNew(){return this.jrkbilldraftCpIdNew;}
    public void setJrkbilldraftCpIdNew(Integer jrkbilldraftCpIdNew){this.jrkbilldraftCpIdNew = jrkbilldraftCpIdNew;}


    @Override
    public String toString() {
        return "JrkbilldraftCpIdTransfer{" +
        ",id='" + id + '\'' +
        ",jrkbillCpId='" + jrkbillCpId + '\'' +
        ",jrkbilldraftCpIdOld='" + jrkbilldraftCpIdOld + '\'' +
        ",jrkbilldraftCpIdNew='" + jrkbilldraftCpIdNew + '\'' +
        '}';
    }

    public static class Builder{
        private Long id;
        private Integer jrkbillCpId;
        private Integer jrkbilldraftCpIdOld;
        private Integer jrkbilldraftCpIdNew;

        public Builder id(Long id){this.id = id;return this;}
        public Builder jrkbillCpId(Integer jrkbillCpId){this.jrkbillCpId = jrkbillCpId;return this;}
        public Builder jrkbilldraftCpIdOld(Integer jrkbilldraftCpIdOld){this.jrkbilldraftCpIdOld = jrkbilldraftCpIdOld;return this;}
        public Builder jrkbilldraftCpIdNew(Integer jrkbilldraftCpIdNew){this.jrkbilldraftCpIdNew = jrkbilldraftCpIdNew;return this;}
        public JrkbilldraftCpIdTransfer build(){
            return new JrkbilldraftCpIdTransfer(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public JrkbilldraftCpIdTransfer(Builder builder){
        this.id = builder.id;
        this.jrkbillCpId = builder.jrkbillCpId;
        this.jrkbilldraftCpIdOld = builder.jrkbilldraftCpIdOld;
        this.jrkbilldraftCpIdNew = builder.jrkbilldraftCpIdNew;
    }
    /**
     * 自定义代码请写在此处之后
     */
}
